//文件内容如下
import { IsNotExistsRule } from '@/auth/rules/is-not-exisis.rule';
import { IsNotEmpty } from 'class-validator';
export class CreateDirectoryDto {
  @IsNotEmpty({ message: '输入目录不能为空' })
  @IsNotExistsRule('directory', {
    message: '该项目名字已经被输入过了',
  })
  name: string;

  projectId?: number;

  parentId?: number;
}
